import request from '@/utils/request'

// 查询白皮书基本信息列表
export function listProject(query) {
  return request({
    url: '/system/project/list',
    method: 'get',
    params: query
  })
}

// 查询白皮书基本信息统计
export function statisticNum() {
  return request({
    url: '/system/project/statisticNum',
    method: 'get'
  })
}

// 查询白皮书基本信息详细
export function getProject(id) {
  return request({
    url: '/system/project/' + id,
    method: 'get'
  })
}

// 停止项目
export function stopProject(data) {
  return request({
    url: '/system/project/stop',
    method: 'post',
    data: data
  })
}

// 左侧树
export function projectTree(query) {
  return request({
    url: '/system/project/tree',
    method: 'get',
    params: query
  })
}

// 左侧树
export function detailList(query) {
  return request({
    url: '/system/project/detailList',
    method: 'get',
    params: query
  })
}
